<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
    <head>

    <script type="text/javascript">
            function base_url() {
                return "<?php print(base_url());?>";
            }
    </script>
    <meta content="text/html; charset=utf-8" http-equiv="Content-Type"/>
    <title><?php echo $title; ?></title>
    <link media="screen, projection" type="text/css" rel="stylesheet" href="<?php echo base_url(); ?>css/main.css"/>
    <link media="screen, projection" type="text/css" rel="stylesheet" href="<?php echo base_url(); ?>css/ui-darkness/jquery-ui-1.8.10.custom.css"/>
    <link rel="stylesheet" type="text/css" href="<?php echo base_url(); ?>css/jquery.jqplot.min.css" />
    <script src="<?php echo base_url(); ?>js/jquery-1.4.4.min.js" type="text/javascript"></script>
    <script src="<?php echo base_url(); ?>js/jquery-ui-1.8.10.custom.min.js" type="text/javascript"></script>
    <?php
    $bu=base_url();
    for($i=0;$i<sizeof($js);$i++)
    {
        $file=$bu."js/$js[$i]";
        echo '<script src="'.$file.'" type="text/javascript"></script>';
        print "\n";

    }
    ?>

    </head>

    <body>
    <div id="wrapper">
        <div id="header">
            <div id="contactButton">
                <a title="contact us" href="mailto:nayeem007@gmail.com">Contact Us</a>
            </div>
                <img width="799" height="147" style="float: right;" src="<?php echo base_url(); ?>images/Header.png" alt="Header"/>
                <img width="239" height="147" style="float: left;" src="<?php echo base_url(); ?>images/BTCL.jpg" alt="Header"/>
                <div id="mainNav">
                <ul>
                    <li><?php echo anchor('home','Home');?></li>
                    <li><?php echo anchor('admin','Admin');?></li>
                    <li><?php echo anchor('statistics','Statistics');?></li>
                    <li><?php if($this->session->userdata('logged_in')!=null && $this->session->userdata('logged_in')!=false){?><li><form action="<?php echo base_url(); ?>customer/logout" method="post"><input type="submit" value="Logout"/></form></li><?php }?></li>

                </ul>
                </div>
        </div>
        
        <div id="sidebar">
          <?php $this->load->view($sidebar);?>
        </div>
        <div id="mainContent">
           <?php $this->load->view($content);?>

        </div>
        <div id="footer">
            <p>
                &copy; BTCL. Muhammad Ali Nayeem </p>
        </div>
    </div>
</body></html>